﻿using System.Xml.Serialization;

namespace BaseUtils.AppConfig
{
    public class PlcInfo : RootBase
    {

        [XmlElement("runtime")]
        public Runtime Runtime { get; set; }

        [XmlElement("startupWrite")]
        public Offset StartupWrite { get; set; }

        [XmlElement("address")]
        public Offset AddressOffset { get; set; }

        [XmlAttribute("frame")]
        public int Frame { get; set; }

        [XmlAttribute("cpuSolt")]
        public int CpuSolt { get; set; }

        [XmlAttribute("readDataBlock")]
        public int ReadDataBlock { get; set; }

        [XmlAttribute("readOffset")]
        public int ReadOffset { get; set; }

        [XmlAttribute("readLength")]
        public int ReadLength { get; set; }

        [XmlAttribute("cpuType")]
        public string cpuType { get; set; }

        /// <summary>
        /// 非配置文件值
        /// </summary>
        public bool LinkSucceed { get; set; }

        public PlcInfo()
        {
        }
    }
}
